package com.qch.demo_gc;

import java.util.ArrayList;

/**
 * @Author qch
 * @Date 2021/8/23
VM参数： -XX:SurvivorRatio=8 -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:+PrintGCDetails -Xloggc:D://logs/gc.log
 */
public class TestGCLog04 {
    private static final int _1MB=1024*1024;

    public static void main(String[] args) {
        ArrayList<byte[]> list = new ArrayList<byte[]>();
        byte[] arr = new byte[1024 * 100];
        list.add(arr);
        try {
            Thread.sleep(20);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }


    }

}
